// @ts-ignore
/* eslint-disable */
import request from '@/utils/request'

/** 此处后端没有提供注释 POST /videoComment/addComment */
export async function addComment(
  body: StudyService.VideoCommentDTO,
  options?: { [key: string]: any }
) {
  return request<StudyService.ResultString>(`/study/videoComment/addComment`, {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 DELETE /videoComment/deleteComment */
export async function deleteComment(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: StudyService.deleteCommentParams,
  options?: { [key: string]: any }
) {
  return request<StudyService.ResultBoolean>(`/study/videoComment/deleteComment`, {
    method: 'DELETE',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /videoComment/getCommentCount */
export async function getCommentCount(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: StudyService.getCommentCountParams,
  options?: { [key: string]: any }
) {
  return request<StudyService.ResultLong>(`/study/videoComment/getCommentCount`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /videoComment/obtainComment */
export async function getComments(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: StudyService.getCommentsParams,
  options?: { [key: string]: any }
) {
  return request<StudyService.ResultListVideoCommentDTO>(`/study/videoComment/obtainComment`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}
